|
|
|
|
|
|
|
window to run the query. This is not an SQL Passthrough query, so answer No when prompted with this question. |
|
|
|
|
|
|
|
|
This statement selects all the data in the Authors table and presents it to the screen. Your screen should look like the one in Figure 7.7. |
|
|
|
|
|
|
|
|
Figure 7.7.
Results of an SQL query. |
|
|
|
|
| |
|
|
|
|
We will cover SQL SELECT queries in depth in the lesson on Day 8, "Selecting Data with SQL." For now, just remember that you can write, test, and save your SQL queries using the Visdata SQL window. |
|
|
|
|
|
|
|
|
|
|
You can save this query for later use within your Visual Basic 5 programs by first closing the screen that contains the result of your Select query and then clicking on the Save button in the SQL Statement window. Next, supply the query object name qryTest, and click OK in the dialog box that appears (see Figure 7.8). Again, this is not an SQL Passthrough query, so answer No when the SQL Passthrough dialog appears. |
|
|
|
|
|
|
|
|
Each time you load Visdata, the program remembers the last SQL query you entered in the SQL window. You can click the Clear button to clear out the text in the SQL Statement window. |
|
|
|
|
|
|
|
|
Icons appear on a toolbar near the top of the Visdata main screen. You use these icons to establish the type of data object Visdata uses to access the data and the type of data entry form Visdata uses to present the selected data on the screen. You can also use these icons to assist in making changes to your database, with the option of committing the changes once made or rolling back (undoing) the change. |
|
|
|
|
|